﻿@using System.Xml;
@using NetCoreCMS.Common;
@using NetCoreCMS.Models;
@{
    Layout = "~/Areas/admin/Views/Shared/_LayoutEdit.cshtml";
    ViewBag.Title = "编辑支付方式";
    Site_payment m = ViewData["model"] as Site_payment;
    Sysconfig sysConfig = ViewData["config"] as Sysconfig;
    List<SelectListItem> list = ViewData["list"] as List<SelectListItem>;
}
@section HeaderContent{
    <script>
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
        });
    </script>
}
<form id="form1" method="post" action="SubmitSave?action=@ViewBag.Action&id=@ViewBag.Id">
    <!--导航栏-->
    <div class="location">
        <a href="site_payment_list.aspx" class="back"><i class="iconfont icon-up"></i><span>返回列表页</span></a>
        <a href="../center.aspx"><i class="iconfont icon-home"></i><span>首页</span></a>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>订单设置</span>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>支付方式</span>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>编辑支付方式</span>
    </div>
    <div class="line10"></div>
    <!--/导航栏-->
    <!--内容-->
    <div id="floatHead" class="content-tab-wrap">
        <div class="content-tab">
            <div class="content-tab-ul-wrap">
                <ul>
                    <li><a class="selected" href="javascript:;">编辑支付方式</a></li>
                </ul>
            </div>
        </div>
    </div>

    <div class="tab-content">
        <dl>
            <dt>所属平台</dt>
            <dd>
                <div class="rule-single-select">
                    @Html.DropDownList("ddlPaymentId", new SelectList(list, "Value", "Text", m.payment_id.ToString()), new { datatype = "*", errormsg = "请选择平台", sucmsg = " " })
                    <span class="Validform_checktip">*请先选择站点后保存显示支付平台</span>
                </div>
            </dd>
        </dl>
        <dl>
            <dt>排序数字</dt>
            <dd>
                @Html.TextBox("txtSortId", m.sort_id, new { @class = "input normal", datatype = "n", sucmsg = " " })
                <span class="Validform_checktip">*数字，越小越向前</span>
            </dd>
        </dl>
        <dl>
            <dt>标题名称</dt>
            <dd>
                @Html.TextBox("txtTitle", m.title, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                <span class="Validform_checktip">*网站上面显示的标题，100字符内</span>
            </dd>
        </dl>
        @if (Convert.ToBoolean(ViewBag.div_key1_container))
        {
            <dl id="div_key1_container">
                <dt>@ViewBag.div_key1_title</dt>
                <dd>
                    @Html.TextBox("txtKey1", m.key1, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                    <span class="Validform_checktip">@ViewBag.div_key1_tip</span>
                </dd>
            </dl>
        }
        @if (Convert.ToBoolean(ViewBag.div_key2_container))
        {
            <dl id="div_key2_container">
                <dt>@ViewBag.div_key2_title</dt>
                <dd>
                    @Html.TextBox("txtKey2", m.key2, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                    <span class="Validform_checktip">@ViewBag.div_key2_tip</span>
                </dd>
            </dl>
        }
        @if (Convert.ToBoolean(ViewBag.div_key3_container))
        {
            <dl id="div_key3_container">
                <dt>@ViewBag.div_key3_title</dt>
                <dd>
                    @Html.TextBox("txtKey3", m.key3, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                    <span class="Validform_checktip">@ViewBag.div_key3_tip</span>
                </dd>
            </dl>
        }
        @if (Convert.ToBoolean(ViewBag.div_key4_container))
        {
            <dl id="div_key4_container">
                <dt>@ViewBag.div_key4_title</dt>
                <dd>
                    @Html.TextBox("txtKey4", m.key4, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                    <span class="Validform_checktip">@ViewBag.div_key4_tip</span>
                </dd>
            </dl>
        }
    </div>
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <input type="submit" id="btnSubmit" class="btn" value="提交保存" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: location.href = '../site_payment_list/index';" />
        </div>
    </div>
    <!--/工具栏-->

</form>
